﻿package Events
{
	import flash.events.Event;
	
	public class UIEvent extends Event
	{
		public var args:Array = null;
		
		
		////////////////////////////////////////////////////////
		public static const UICLOSE:String  = "UICLOSE";
		
		public static const UIOPEN:String 	= "UIOPEN";
		
		public static const UIMOVE:String = "UIMOVE";
		
		public static const UISTOP:String = "UISTOP";
		////////////////////////////////////////////////////////
		
		
		// Constructor
		public function UIEvent( type:String, bubbles:Boolean = false, cancelable:Boolean = false ) 
		{
			// Pass constructor parameters to the superclass constructor
			super( type, bubbles, cancelable );
		}
		
		// Every custom event class must override clone()
		public override function clone():Event
		{
			return new UIEvent( type, bubbles, cancelable );
		}
		
		public override function toString():String
		{
			return "UIEvent";
		}

	}
}